<?php

declare(strict_types=1);

namespace App\CustHub\Request;

use Mine\MineFormRequest;

class RoomTagRequest extends MineFormRequest
{
    public function saveRules(): array
    {
        return [
            'name' => 'required',
            'tags' => 'required|array'
        ];
    }


    public function addRoomRules(): array
    {
        return [
            'id' => 'required',
            'room_ids' => 'required'
        ];
    }

    public function delRoomRules(): array
    {
        return [
            'id' => 'required',
            'room_ids' => 'required'
        ];
    }

    public function moveRoomRules(): array
    {
        return [
            'remove_id' => 'required',
            'room_ids' => 'required',
            'move_tag_ids' => 'required'
        ];
    }

    public function tagConfigRules(): array
    {
        return [
            'tag_id' => 'required',
        ];
    }

    public function saveTagConfigRules(): array
    {
        return [
            'tag_id' => 'required',
            'keyword_switch' => 'in:0,1',
            'member_count_switch' => 'in:0,1',
        ];
    }
}